package cc.sunwl;

import cc.sunwl.strategy.ConcreteStrategyA;
import cc.sunwl.strategy.Context;
import cc.sunwl.strategy.ContextAndSimplefactory;

public class App {
    public static void main(String[] args) {
        Context context = new Context(new ConcreteStrategyA());
        context.ContextInterface();
        // 策略与简单工厂结合
        ContextAndSimplefactory contextAndSimplefactory = new ContextAndSimplefactory('B');
        contextAndSimplefactory.ContextInterface();
    }
}
